# -*- coding: utf8 -*-
"""
Function attributes:
* load: boolean. If False the function will not load. Optional.
* name: strinbot.logs. Optional.
* thread: boolean. If True, Function will work by starting a thread. Optional.
* rule: string or regexp object. Requered.
* aliases: list of strings or regexp objects. Optional.
"""

def die(bot, evt, cmd):
	if cmd.opts['killword'] == bot.killword or cmd.arguments == bot.killword:
		bot.reboot("%s by killword" % evt.source)
die.rule =  "die"
die.evttypes = ("privmsg",)
